import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:mtf/app/modules/edit_email_module/edit_email_controller.dart';
import 'package:mtf/app/theme/app_colors.dart';
import 'package:mtf/app/widget/AppBarLeftTitle.dart';
/**
 * GetX Template Generator - fb.com/htngu.99
 * */

class editEmailPage extends GetView<editEmailController> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBarLeftTitle(title: "改电子邮箱"),
      body: Container(
        child: Column(children: [
          Container(
            width: double.infinity,
            color: Colors.white,
            child: TextField(
              decoration: InputDecoration(
                contentPadding:
                const EdgeInsets.symmetric(vertical: 14,horizontal: 16),
                hintText: "请输入您的电子邮箱",
                hintStyle: TextStyle(fontSize: 14, color: c_999999),
                border: InputBorder.none,
              ),
              style: TextStyle(color: c_333333, fontSize: 14),
              controller: controller.emailController,
            ),
          ),
          Divider(height: 1,),
          Container(
            margin: const EdgeInsets.only(top: 30, left: 10, right: 10),
            width: double.maxFinite,
            height: 48,
            decoration: BoxDecoration(
              borderRadius: BorderRadius.circular(24),
              color: c_f12f38,
            ),
            child: TextButton(
                child: Text("保存",
                    style: TextStyle(
                        color: Colors.white,
                        fontSize: 16,
                        fontWeight: FontWeight.bold)),
                onPressed: () {
                  controller.clickMailbox();
                }),
          )
        ],),
      ),
    );
  }
}
